<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');

class WST_Controller extends CI_Controller
{

    // or MX_Controller if you use HMVC, linked above
    function __construct ()
    {
        parent::__construct();
        ENVIRONMENT != 'development' || $this->output->enable_profiler(TRUE);
		$this->load->helper(array('form','url','captcha'));
		$this->load->database();
        // Load shared resources here or in autoload.php
        
    }
}

/**
 * Back end Controller
 *
 */
class Admin_Controller extends WST_Controller {

    function __construct()
    {
        parent::__construct();
        //Layout::Layout('admin','cp');
        $this->layout->setLayout('admin','cp');


        // Check login, load back end dependencies
    }
}

/**
 * Default Front-end Controller
 *
 */
class Front_Controller extends WST_Controller {

    function __construct()
    {
        parent::__construct();
        // Load any front-end only dependencies
    }
}